// 操作明星数据表的模块
var mongoose = require('mongoose')
var Schema = mongoose.Schema   //用于定义表结构的对象
var furSchema = new Schema({  //实例化一张具体的明星数据表
  "id": Number,
  "bom": String,
  "name": String,
  "category": String,
  "picFront": String,
  "picLeft": String,
  "linkYouzan": String,
  "skuCols": Number,
  "upYear": String,
  "shortDesc": String,
  "scenPics": String,
  "fnjiType": Number,
  "showOrder": Number,
  "nameEn": String,
  "skuProductLine": String
})
var furModel = mongoose.model('furniture',furSchema) //用于操作（增删改查）对应schema数据表的模型对象
module.exports = furModel  //对外导出数据表的操作对象